home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 2.6 KB | 108 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _SHAPEB_
- #define _SHAPEB_
-
- #ifndef _ODOBJECT_
- #include "ODObject.idl" // base class
- #endif
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODBaseShape;
-
- //==============================================================================
- // Classes used in this interface
- //==============================================================================
-
- interface ODShape;
- interface ODTransform;
- interface ODStorageUnit;
-
- //==============================================================================
- // ODBaseShape
- //==============================================================================
-
- interface ODBaseShape : ODObject
- {
-
- //---------------------------------
- // getters/setters
-
- void SetGeometryMode(in ODGeometryMode mode);
- ODGeometryMode GetGeometryMode();
- void GetBoundingBox(out ODRect bounds);
- ODShape SetRectangle(in ODRect rect);
- ODPolygon CopyPolygon();
- ODShape SetPolygon(in ODPolygon polygon);
- ODPlatformShape GetPlatformShape(in ODGraphicsSystem graphicsSystem);
- void SetPlatformShape(in ODGraphicsSystem graphicsSystem,
- in ODPlatformShape platformShape);
-
- //---------------------------------
- // input / output:
-
- void WriteShape(in ODStorageUnit storageUnit);
- ODShape ReadShape(in ODStorageUnit storageUnit);
-
- //---------------------------------
- // comparison/testing functions
-
- ODBoolean IsSameAs(in ODShape compareShape);
- ODBoolean IsEmpty();
- ODBoolean ContainsPoint(in ODPoint point);
- ODBoolean IsRectangular();
- ODBoolean HasGeometry();
-
- //---------------------------------
- // geometry operations
-
- ODShape Copy();
- void CopyFrom(in ODShape sourceShape);
- ODShape Transform(in ODTransform transform);
- ODShape InverseTransform(in ODTransform transform);
- ODShape Subtract(in ODShape diffShape);
- ODShape Intersect(in ODShape sectShape);
- ODShape Union(in ODShape unionShape);
-
- #ifdef __SOMIDL__
- implementation
- {
- override:
- somInit,
- somUninit;
-
- releaseorder:
- SetGeometryMode,
- GetGeometryMode,
- GetBoundingBox,
- SetRectangle,
- CopyPolygon,
- SetPolygon,
- GetPlatformShape,
- SetPlatformShape,
- WriteShape,
- ReadShape,
- IsSameAs,
- IsEmpty,
- ContainsPoint,
- IsRectangular,
- HasGeometry,
- Copy,
- CopyFrom,
- Transform,
- InverseTransform,
- Subtract,
- Intersect,
- Union,
- reserved1;
-
- majorversion = 1; minorversion = 0;
-
- };
- #endif
- };
-
- #endif // _SHAPE_
-